package org.celery.modules.goods.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.goods.entity.GoodsLabel;
import org.celery.modules.goods.vo.GoodsLabelVO;

/**
 * 商品标签表包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2021-10-27
 */
public class GoodsLabelWrapper extends BaseEntityWrapper<GoodsLabel, GoodsLabelVO>  {

    public static GoodsLabelWrapper build() {
        return new GoodsLabelWrapper();
    }

	@Override
	public GoodsLabelVO entityVO(GoodsLabel goodsLabel) {
		GoodsLabelVO goodsLabelVO = BeanUtil.copy(goodsLabel, GoodsLabelVO.class);

		return goodsLabelVO;
	}

}
